/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package eu.bopet.jocadv.core.constraints;

import eu.bopet.jocadv.core.Constraint;
import eu.bopet.jocadv.core.Parameter;
import eu.bopet.jocadv.core.datum.CSys;
import eu.bopet.jocadv.core.datum.Point;
import java.io.Serializable;

/**
 * The class represents geometric constraint of point offset to a coordinate
 * system
 *
 * @author bocskapeter
 */
public class PointOffsetToCSys extends Constraint implements Serializable {

    /**
     * Default constructor
     *
     * @param name
     * @param point
     * @param cSys
     * @param x
     * @param y
     * @param z
     */
    public PointOffsetToCSys(String name, Point point, CSys cSys, double x, double y, double z) {
        super(name);
        this.addToElementList(point);
        this.addToElementList(cSys);
        Parameter parameter = new Parameter("Parameter");
        parameter.addParameterToList(x);
        parameter.addParameterToList(y);
        parameter.addParameterToList(z);
        this.setParameter(parameter);
    }  
    
}